home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
-
- on new me, spriteRef
- if the paramCount = 1 then
- nothing()
- else
- if the paramCount = 2 then
- spriteNum = spriteRef.spriteNum
- end if
- end if
- return me
- end
-
- on mouseDown me
- set the member of sprite the spriteNum of me to member(word 1 of the name of the member of sprite the spriteNum of me && "click")
- updateStage()
- end
-
- on mouseUp me
- if (the member of sprite me.spriteNum).name = "close click" then
- set the member of sprite the spriteNum of me to "close"
- updateStage()
- clearDialog()
- end if
- end
-
- on mouseUpOutSide me
- set the member of sprite the spriteNum of me to word 1 of the name of the member of sprite the spriteNum of me
- updateStage()
- end
-
- on mouseEnter me
- if the stillDown and (the clickOn = me.spriteNum) then
- set the member of sprite the spriteNum of me to word 1 of the name of the member of sprite the spriteNum of me && "click"
- updateStage()
- end if
- end
-
- on mouseLeave me
- set the member of sprite the spriteNum of me to word 1 of the name of the member of sprite the spriteNum of me
- updateStage()
- end
-